package com.zheng.common.base;

import com.baomidou.mybatisplus.annotations.TableField;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: xinqi
 * Date: 2018/4/19
 * Time: 9:26
 */
public abstract class BaseEntity<T> extends PageEntity<T> {

    protected Integer cuser;

    protected Date ctime;

    protected Integer corganization;


    @TableField(exist = false)
    protected Map<String, String> sqlMap;

    @TableField(exist = false)
    protected String beginDate;

    @TableField(exist = false)
    protected String endDate;

    public Integer getCuser() {
        return cuser;
    }

    public void setCuser(Integer cuser) {
        this.cuser = cuser;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public Integer getCorganization() {
        return corganization;
    }

    public void setCorganization(Integer corganization) {
        this.corganization = corganization;
    }

    public Map<String, String> getSqlMap() {
        if (sqlMap == null) {
            sqlMap = new HashMap<>();
        }
        return sqlMap;
    }

    public void setSqlMap(Map<String, String> sqlMap) {
        this.sqlMap = sqlMap;
    }

    public String getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(String beginDate) {
        this.beginDate = beginDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }
}
